package com.smartalarmclock.UI;

import java.util.ArrayList;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

/**
 * A simple {@link android.support.v4.app.Fragment} subclass.
 * 
 */
public class VIPFragment extends Fragment {

	public VIPFragment() {
		// Required empty public constructor
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState)
	{
		// Inflate the layout for this fragment
		View view = inflater.inflate(R.layout.main_menu, container, false);
		
		ArrayList<MainMenuItemDetails> image_details = GetSearchResults();
        
        final ListView lv1 = (ListView) view.findViewById(R.id.listV_main);
        lv1.setAdapter(new ItemListBaseAdapter(this.getActivity(), image_details));
        	
		return view;
	}
	
	private ArrayList<MainMenuItemDetails> GetSearchResults(){
    	ArrayList<MainMenuItemDetails> results = new ArrayList<MainMenuItemDetails>();
    	
    	MainMenuItemDetails item_details = new MainMenuItemDetails("VIP", 2);
    	results.add(item_details);
    	
    	item_details = new MainMenuItemDetails("VIP", 2);
    	results.add(item_details);
    	
    	item_details = new MainMenuItemDetails("VIP", 2);
    	results.add(item_details);
    	
    	item_details = new MainMenuItemDetails("VIP", 2);
    	results.add(item_details);
    	
    	item_details = new MainMenuItemDetails("VIP", 2);
    	results.add(item_details);
    	
    	return results;
    }

}
